﻿// Decompiled with JetBrains decompiler
// Type: DnProcessSimulateCommands.PLCRecorderModes.CUIPlcRecorderModesCmd
// Assembly: DnProcessSimulateCommands, Version=2402.0.0.890, Culture=neutral, PublicKeyToken=null
// MVID: A885D881-AEDF-447E-852A-6F13102E089C
// Assembly location: C:\Program Files\Tecnomatix_2402\eMPower\DotNetCommands\DnProcessSimulateCommands.dll

using System.Windows.Forms;
using Tecnomatix.Engineering;
using Tecnomatix.Engineering.PrivateImplementationDetails;


namespace DnProcessSimulateCommands.PLCRecorderModes;

public class CUIPlcRecorderModesCmd : TxButtonCommand
{
  private CUIPlcRecorderModesForm m_PLCRecorderModesForm;

  public virtual string Category => "Robot and Device";

  public virtual string Name => "PLC Recorder Modes";

  public virtual string Tooltip => "PLC Recorder Modes";

  public virtual string Bitmap => (string) null;

  public virtual string Description => "PLC Recorder Modes";

  public virtual bool Licensed => TxCommandLicenser.CustomizedUILicense;

  public virtual void Execute(object cmdParams)
  {
    if (!TxFeatureManager.CheckFeature("PLC_RECORDER"))
    {
      int num = (int) TxMessageBox.Show("Missing PLC_RECORDER in your features.txt file.", "PLC RECORDER", MessageBoxButtons.OK, MessageBoxIcon.Hand);
    }
    else
    {
      this.m_PLCRecorderModesForm = new CUIPlcRecorderModesForm();
      this.m_PLCRecorderModesForm.SemiModal = false;
      ((Control) this.m_PLCRecorderModesForm).Show();
    }
  }
}
